#!/bin/bash
#j=0;cat record|grep $1|cut -d, -f 2|while read i; do ((j=j+i)); echo $j; done|tail -n 1
t=`cat record|grep -v "^=="|grep $1|cut -d, -f 2|tr '\n' '+'|sed 's/+$/\n/'`
s=`echo $t|bc -l`
echo 单项累计：$t
echo 总量统计：$s
